package info.motteke.qjdbc.exception;

import java.sql.SQLException;

public class SqlException extends QuickJDBCException {

    /**
     *
     */
    private static final long serialVersionUID = 3855447887159876019L;

    private SQLException e;

    public SqlException(SQLException e){
        super(e);
        this.e = e;
    }

    public String getSQLState() {
        return e.getSQLState();
    }

    public int getErrorCode() {
        return e.getErrorCode();
    }

    public SQLException getNextException() {
        return e.getNextException();
    }
}
